/*
 * ExplosionView.h
 *
 *  Created on: 21/06/2014
 *      Author: javier
 */

#ifndef EXPLOSIONVIEW_H_
#define EXPLOSIONVIEW_H_

#include "Drawable.h"
#include "Positionable.h"
#include "Utils.h"

class ExplosionView: public Drawable {
public:
	ExplosionView(SDLWindow* window, SDL_Texture* texture, Positionable* object);
	void render(Camera& cam);
	void update();
	virtual ~ExplosionView();
private:
	std::pair<double, double> geometry;
	SDLWindow* window;
	SDL_Texture* texture;
	SDL_Rect clips[12];
	int useClip;
	Cycler cycler;
	bool ended;
	int rendered;
};

#endif /* EXPLOSIONVIEW_H_ */
